package com.ksd.pug.clound.api;

import com.ksd.pug.clound.pojo.SysUser;
import org.springframework.stereotype.Component;

/**
 * @author 飞哥
 * @Title: 学相伴出品
 * @Description: 飞哥B站地址：https://space.bilibili.com/490711252
 * 记得关注和三连哦！
 * @Description: 我们有一个学习网站：https://www.kuangstudy.com
 * @date 2022/3/4$ 19:04$
 */
@Component
public class UserServiceFeignFallback implements UserServiceFeign {

    /**
     * 查询用户
     *
     * @param id
     * @return
     */
    @Override
    public SysUser findUsers(Long id) {
        return fallback(id);
    }


    public SysUser fallback(Long id) {
        SysUser sysUser = new SysUser();
        sysUser.setId(-1L);
        return sysUser;
    }
}
